//
//  servicesViewController.m
//  EquiriesProject
//
//  Created by qianfeng on 15/11/1.
//  Copyright (c) 2015年 HXH. All rights reserved.
//

#import "servicesViewController.h"

#define serviceUrl @"http://wz.qichecdn.com/info.html?&t=1445588376065"

@interface servicesViewController ()

@end

@implementation servicesViewController
{
    UIWebView * webView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createNav];
    [self createdata];
}

-(void)createdata
{
    webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 64, self.view.bounds.size.width, self.view.bounds.size.height-64)];
    NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:serviceUrl]]];
    [self.view addSubview:webView];
    [webView loadRequest:request];
}

-(void)createNav
{
    UILabel * label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 120, 40)];
    label.text = @"服务协议";
    label.textColor = [UIColor whiteColor];
    label.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:label];
    
    self.navigationItem.titleView = label;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
